package com.xfs.user.utils;

import lombok.Data;

import java.io.Serializable;

/**
 * @Author dwj
 * @Date 2021-10-26 21:01
 */
@Data
public class PageUtil implements Serializable {
    private Integer page;
    private Integer limit;

    public Long getStart(){
        return (page - 1L) * limit;
    }
}
